import request from '@/utils/request'

// 查询车辆历史记录标记列表
export function listMileage(query) {
  return request({
    url: '/report/mileage/list',
    method: 'get',
    params: query
  })
}

// 查询车辆历史记录标记详细
export function getMileage(id) {
  return request({
    url: '/report/mileage/' + id,
    method: 'get'
  })
}

// 新增车辆历史记录标记
export function addMileage(data) {
  return request({
    url: '/report/mileage',
    method: 'post',
    data: data
  })
}

// 修改车辆历史记录标记
export function updateMileage(data) {
  return request({
    url: '/report/mileage',
    method: 'put',
    data: data
  })
}

// 删除车辆历史记录标记
export function delMileage(id) {
  return request({
    url: '/report/mileage/' + id,
    method: 'delete'
  })
}
